Skip to content

Conversation

@lantoli
Copy link
Member

@lantoli lantoli commented Sep 8, 2025

Proposed changes

Fix publish in FlexCluster. Publish scripts expect the project name not the project id as the first parameter.

Jira ticket: CLOUDP-342254

Please include a summary of the fix/feature/change, including any relevant motivation and context.

Link to any related issue(s):

Type of change:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as
    expected)
  • This change requires a documentation update
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Manual QA performed:

  • cfn invoke for each of CRUDL/cfn test
  • Updated resource in example
  • Published to AWS private registry
  • Used the template in example to create and update a stack in AWS
  • Deleted stack to ensure resources are deleted
  • Created multiple resources in same stack
  • Validated in Atlas UI
  • Included screenshots

Required Checklist:

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • For CFN Resources: I have released by changes in the private registry and proved by change
    works in Atlas

Further comments

@lantoli lantoli force-pushed the CLOUDP-342254_publish_flex_cluster branch from 18ed769 to 0057334 Compare September 8, 2025 07:57
@lantoli lantoli changed the title chore: Publish FlexCluster chore: Fix publish in FlexCluster Sep 8, 2025
@lantoli lantoli force-pushed the CLOUDP-342254_publish_flex_cluster branch from bcb06f6 to 08f83f4 Compare September 8, 2025 08:49
@lantoli lantoli marked this pull request as ready for review September 8, 2025 08:49
Copilot AI review requested due to automatic review settings September 8, 2025 08:49
@lantoli lantoli requested a review from a team as a code owner September 8, 2025 08:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the FlexCluster publish scripts by correcting the parameter passed to the test input generation script. The publish scripts expect the project name rather than the project ID as the first parameter.

  • Fixed parameter type passed from project ID to project name in test script
  • Updated test input generation script to handle project name and resolve project ID internally
  • Added missing delete inputs script for publish workflow compliance

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
cfn-resources/flex-cluster/test/contract-testing/cfn-test-create.sh Changed parameter from projectId to projectName when calling input generation script
cfn-resources/flex-cluster/test/cfn-test-delete-inputs.sh Added empty cleanup script required by publish workflow
cfn-resources/flex-cluster/test/cfn-test-create-inputs.sh Updated to accept project name instead of ID and handle project lookup/creation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@marcosuma marcosuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am guessing we've manually tested it now? Just making sure it is now confirmed it works.

@lantoli
Copy link
Member Author

lantoli commented Sep 8, 2025

@marcosuma correct, it failed the first time that flex-cluster publish was tried, I fixed it in this PR and confirmed it works now

@lantoli lantoli added this pull request to the merge queue Sep 8, 2025
Merged via the queue into master with commit e229909 Sep 8, 2025
75 of 76 checks passed
@lantoli lantoli deleted the CLOUDP-342254_publish_flex_cluster branch September 8, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants